/**
 * 
 */
package com.et114.modules.org.vo;

import java.util.ArrayList;
import java.util.List;

import com.et114.components.acegi.Constants;
import com.et114.core.utility.StringPool;

/*
 * Auth_FuncElementMsg
 * @author guanhw
 */
public class FuncComponentVo extends OrgBaseVo implements IResource {
	private static final long	serialVersionUID	= 8916190970457425485L;
	private Long funcElementId ; 
	private String name ;
	private Long funcId ;
	private String code ; 
	private String targetUrl ; 
	private String compDesc ; 
	
	private List roles = new ArrayList() ; 
	private List users = new ArrayList();
	private List titles = new ArrayList();
	private FunctionVo parent = null ; //冯淼
	/**
	 * 
	 */
	
	//extends properties
	private java.util.Date authDate ;
	private byte roleType ; 
	private Long roleId ;
	private String roleName ;
	
	public Long getRoleId ( ) {
		return roleId;
	}

	public void setRoleId ( Long roleId ) {
		this.roleId = roleId;
	}

	public byte getRoleType ( ) {
		return roleType;
	}

	public void setRoleType ( byte roleType ) {
		this.roleType = roleType;
	}

	public FuncComponentVo ( ) {
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see com.et114.components.acegi.vo.IResource#getResString()
	 */
	public String getResString ( ) {
		// TODO Auto-generated method stub
		return   targetUrl != null ? ( code + StringPool.COLON + targetUrl ) : ( code + StringPool.COLON ) ;
	}

	/* (non-Javadoc)
	 * @see com.et114.components.acegi.vo.IResource#getResType()
	 */
	public String getResType ( ) {
		// TODO Auto-generated method stub
		return Constants.RESOURCE_COMPONENT;
	}

	/* (non-Javadoc)
	 * @see com.et114.components.acegi.vo.IResource#getRoles()
	 */
	public List getRoles ( ) {
		// TODO Auto-generated method stub
		return this.roles;
	}

	/* (non-Javadoc)
	 * @see com.et114.components.acegi.vo.IResource#getTitles()
	 */
	public List getTitles ( ) {
		// TODO Auto-generated method stub
		return this.titles;
	}

	/* (non-Javadoc)
	 * @see com.et114.components.acegi.vo.IResource#getUsers()
	 */
	public List getUsers ( ) {
		// TODO Auto-generated method stub
		return this.users;
	}


	public Long getFuncElementId ( ) {
		return funcElementId;
	}

	public void setFuncElementId ( Long funcElementId ) {
		this.funcElementId = funcElementId;
	}

	public String getName ( ) {
		return name;
	}

	public void setName ( String name ) {
		this.name = name;
	}

	public Long getFuncId ( ) {
		return funcId;
	}

	public void setFuncId ( Long funcId ) {
		this.funcId = funcId;
	}

	public String getCode ( ) {
		return code;
	}

	public void setCode ( String code ) {
		this.code = code;
	}

	public FunctionVo getParent ( ) {
		return parent;
	}

	public void setParent ( FunctionVo parent ) {
		this.parent = parent;
	}

	public String getCompDesc ( ) {
		return compDesc;
	}

	public void setCompDesc ( String compDesc ) {
		this.compDesc = compDesc;
	}

	public void setRoles ( List roles ) {
		this.roles = roles;
	}

	public void setUsers ( List users ) {
		this.users = users;
	}

	public void setTitles ( List titles ) {
		this.titles = titles;
	}

	public java.util.Date getAuthDate ( ) {
		return authDate;
	}

	public String getTargetUrl ( ) {
		return targetUrl;
	}

	public void setTargetUrl ( String targetUrl ) {
		this.targetUrl = targetUrl;
	}

	public void setAuthDate ( java.util.Date authDate ) {
		this.authDate = authDate;
	}

	public String getRoleName ( ) {
		return roleName;
	}

	public void setRoleName ( String roleName ) {
		this.roleName = roleName;
	}

	public String getResName ( ) {
		// TODO Auto-generated method stub
		return code ; 
	}
	
}
